.class public Lcom/a0soft/gphone/app2sd/main/VertTabWidget;
.super Landroid/widget/TabWidget;
.source "VertTabWidget.java"


# direct methods
.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 21
    const/4 v0, 0x0

    invoke-direct {p0, p1, p2, v0}, Lcom/a0soft/gphone/app2sd/main/VertTabWidget;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 22
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .locals 1
    .parameter
    .parameter
    .parameter

    .prologue
    .line 27
    invoke-direct {p0, p1, p2}, Landroid/widget/TabWidget;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 29
    const/4 v0, 0x1

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/VertTabWidget;->setOrientation(I)V

    .line 30
    return-void
.end method


# virtual methods
.method public addView(Landroid/view/View;)V
    .locals 3
    .parameter

    .prologue
    const/4 v1, 0x2

    .line 35
    invoke-super {p0, p1}, Landroid/widget/TabWidget;->addView(Landroid/view/View;)V

    .line 37
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/VertTabWidget;->getChildCount()I

    move-result v0

    if-le v0, v1, :cond_1

    .line 38
    invoke-virtual {p0}, Lcom/a0soft/gphone/app2sd/main/VertTabWidget;->getChildCount()I

    move-result v0

    sub-int/2addr v0, v1

    invoke-virtual {p0, v0}, Lcom/a0soft/gphone/app2sd/main/VertTabWidget;->getChildAt(I)Landroid/view/View;

    move-result-object p0

    .line 39
    if-eqz p0, :cond_2

    const/4 v0, 0x1

    :goto_0
    instance-of v1, p0, Landroid/widget/ImageView;

    and-int/2addr v0, v1

    if-eqz v0, :cond_1

    .line 40
    check-cast p0, Landroid/widget/ImageView;

    .line 41
    invoke-virtual {p0}, Landroid/widget/ImageView;->getBackground()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 42
    if-nez v0, :cond_0

    .line 43
    invoke-virtual {p0}, Landroid/widget/ImageView;->getDrawable()Landroid/graphics/drawable/Drawable;

    move-result-object v0

    .line 45
    :cond_0
    if-eqz v0, :cond_1

    .line 46
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    const/4 v2, -0x1

    invoke-virtual {v0}, Landroid/graphics/drawable/Drawable;->getIntrinsicHeight()I

    move-result v0

    invoke-direct {v1, v2, v0}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    .line 49
    invoke-virtual {p0, v1}, Landroid/widget/ImageView;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 53
    :cond_1
    return-void

    .line 39
    :cond_2
    const/4 v0, 0x0

    goto :goto_0
.end method
